//
//  AliyunOSSConfigurationRequest.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/30.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "AliyunOSSConfigurationRequest.h"

@implementation AliyunOSSConfigurationRequest

- (HttpRequestMethod)requestMethod {
    return POST;
}

- (NSString *)relativelyUrl {
    return V1_Config_Oss_Token;
}

- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        AliyunOSSConfigurationResponse *resp = [AliyunOSSConfigurationResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}


@end
